<%--
  Created by IntelliJ IDEA.
  User: Chenmin
  Date: 12-3-15
  Time: 上午10:49
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
  <title>sql</title>
</head>
<body>
<g:render template="form"/>
<hr />
    <table border="1">
        <thead>
            <g:each in="${mdList}" var="md">
                <th>${md}</th>
            </g:each>
        </thead>
        <tbody>
        <g:each in="${rsList}" var="rs">
            <tr>
            <g:each in="${mdList}" var="mm">
                <g:each in="${rs}" var="r">
                    <g:if test="${mm == r.key}">
                        <td>${r.value}</td>
                    </g:if>
                </g:each>
            </g:each>
            </tr>
        </g:each>
        </tbody>
    </table>


</body>
</html>